package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.PesticideMapper;
import com.bootdo.blog.domain.PesticideDO;
import com.bootdo.blog.service.PesticideService;



@Service
public class PesticideServiceImpl implements PesticideService {
	@Autowired
	private PesticideMapper pesticideMapper;
	
	@Override
	public PesticideDO get(Integer pestId){
		return pesticideMapper.get(pestId);
	}
	
	@Override
	public List<PesticideDO> list(Map<String, Object> map){
		return pesticideMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return pesticideMapper.count(map);
	}
	
	@Override
	public int save(PesticideDO pesticide){
		return pesticideMapper.save(pesticide);
	}
	
	@Override
	public int update(PesticideDO pesticide){
		return pesticideMapper.update(pesticide);
	}
	
	@Override
	public int remove(Integer pestId){
		return pesticideMapper.remove(pestId);
	}
	
	@Override
	public int batchRemove(Integer[] pestIds){
		return pesticideMapper.batchRemove(pestIds);
	}
	
}
